home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 031a / adg_1_3.zip / COPYDIR.BAT next >
DOS Batch File  |  1991-02-21  |  1KB  |  37 lines

  1. @Echo off
  2. REM First parameter is the Distribution drive letter.
  3. REM Second parameter is the sub-directory name.
  4.  
  5. IF NOT %1X == X GOTO OK
  6. ECHO This batch program should not be executed by itself.
  7. ECHO It is executed by the MAKEDD.BAT program.
  8. GOTO EXIT
  9.  
  10. :OK
  11. REM Change into the directory.
  12. CD .\%2
  13.  
  14. REM Create directory on the distribution diskette.
  15. ECHO Creating directory: %1:\%2.
  16. MD %1:\%2
  17.  
  18. IF EXIST MAKEFILE. COPY MAKEFILE. %1:\%2 > Nul
  19. IF EXIST *.C   XCOPY *.C   %1:\%2 > Nul
  20. IF EXIST *.CUR XCOPY *.CUR %1:\%2 > Nul
  21. IF EXIST *.DEF XCOPY *.DEF %1:\%2 > Nul
  22. IF EXIST *.DLG XCOPY *.DLG %1:\%2 > Nul
  23. IF EXIST *.DLL XCOPY *.DLL %1:\%2 > Nul
  24. IF EXIST *.EXE XCOPY *.EXE %1:\%2 > Nul
  25. IF EXIST *.H   XCOPY *.H   %1:\%2 > Nul
  26. IF EXIST *.ICO XCOPY *.ICO %1:\%2 > Nul
  27. IF EXIST *.INF XCOPY *.INF %1:\%2 > Nul
  28. IF EXIST *.LIB XCOPY *.LIB %1:\%2 > Nul
  29. IF EXIST *.MKF XCOPY *.MKF %1:\%2 > Nul
  30. IF EXIST *.RC  XCOPY *.RC  %1:\%2 > Nul
  31.  
  32. REM Change back into the root directory.
  33. cd ..
  34.  
  35. REM Return to the caller.
  36. :EXIT
  37.